package threaddemo7;

import java.util.concurrent.Callable;

/**
 * Created by L.jp
 * Description:
 * User: 86189
 * Date: 2022-08-06
 * Time: 19:20
 */
public class MyCallable implements Callable <String>{
    @Override
    public String call() throws Exception {
        for(int i=0;i<100;i++){
            System.out.println(Thread.currentThread().getName()+"-----"+i);
        }
        return "完毕";
    }
}
